﻿using HT.Future.Entities;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace HT.Future.IService
{
    public interface IBusinessService : IBaseService<Business>
    {
        /// <summary>
        /// 根据用户id获取其绑定的商户列表
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task<List<Business>> GetBusinessesAsync(int userId);

        /// <summary>
        /// 创建商户
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="business"></param>
        /// <returns></returns>
        Task<Business> CreateBusinessAsync(int userId, Business business);

        /// <summary>
        /// 删除绑定商户
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="businessId"></param>
        /// <returns></returns>
        Task<bool> DeleteBusinessAsync(int userId, int businessId);

    }
}
